package com.ht.temp.mapper;

import com.ht.temp.entity.DayReport;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-24
 *
 * **/
public interface DayReportMapper extends BaseMapper<DayReport> {
    //查询天报表某一月之前一月的天平均数据
    public List<DayReport> selectDayReportByMonths(@Param("nowTime") String nowTime, @Param("afterTime") String afterTime, @Param("deviceId") Integer deviceId);

    //计算天报表某一月之前一月的天平均数据
    public DayReport selectDayReportByMonthsAvg(@Param("nowTime") String nowTime, @Param("afterTime") String afterTime, @Param("deviceId") Integer deviceId);

    //查询月报表信息 按月查询30天以内
    List<DayReport> selectMouthReport(@Param("selectMouth") String selectMouth);

    Integer insertDayReport(DayReport dayReport);

}

